package thingapi

import (
	"iot-base/common/config"
	"iot-base/common/webapi"

	"github.com/gin-gonic/gin"
)

func InitConfigAPI(cfg *gin.RouterGroup) {
	configAPI := cfg.Group("/config")
	{
		configAPI.GET("/", func(c *gin.Context) {
			webapi.SendResult(config.GetAllConfig(), nil, c)
		})
	}

}
